package com.qian.service.ddj.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import java.util.Date;

@Getter
@Setter
@ToString
@Entity
@DynamicUpdate
@DynamicInsert
public class DdjCertification extends BaseEntity<Integer> {

    @Column(nullable = false)
    private String name;
    @Column(nullable = false)
    private String idCard;
    @Column(nullable = false)
    private String phone;
    @Column(nullable = false)
    @CreationTimestamp
    private Date submitDate;
    private Date verifyDate;
    @ColumnDefault("11")
    private Byte status;
    @ManyToOne
    private DdjUser user;

}
